
<!doctype html>
<html xmlns="http://www.w3.org/1999/html">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta name="format-detection" content="telephone=no">
    <meta content="telephone=no" name="format-detection">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	{php echo register_jssdk(false);}
<script type="text/javascript">
</script>

    <title>活动首页</title>

    <link type="text/css" rel="stylesheet" href="{RES}/mobile/huodong/stylesheets/vweisiteV01.css?t={php echo time();}"/>
    <link type="text/css" rel="stylesheet" href="{RES}/mobile/huodong/stylesheets/font-awesome.css?t={php echo time();}"/>
    <link href="{RES}/mobile/huodong/stylesheets/vweisiteV01/list/list1.css?t={php echo time();}" media="screen" rel="stylesheet" type="text/css" />
	<link href="{RES}/mobile/huodong/assets/font/font-awesome.min.css" media="screen" rel="stylesheet" type="text/css" />

    <script src="{RES}/mobile/huodong/assets/mobile/vweisiteV01-d0cd3791d9dd0e5456d61063ebfcac05.js" type="text/javascript"></script>
  
  </head>

  <body>
    

    
    <div class="html" style="">
      <div class="stage" id="stage">
        <section id="sec-index">
          
          <div class="body">
            


    <div class="mod-slider slider-hor" id="index">
    <ul class="slider-list">
      <li><a href="{if !empty($cfg['huodongurl'])}{$cfg['huodongurl']}{else}{php echo str_replace('./','',$_W['siteroot'].'app/'.$this->createMobileUrl('huodongindex'))}{/if}" target="__blank"><img  src="{$_W['attachurl']}{$cfg['huodongpicurl']}" /></a></li>
	 
    </ul>
    <div class="slider-text">
      <span class="fl slider-span" id="slider-span">{$cfg['huodongtitle']}</span>
	  
    </div>
  </div>

  <div class="list">
    <ul>
	{loop $ds $row}
        <li>
          <a href="{$row['link']}">
            <div class="list-img">
              <b>
                  <img  src="{$_W['attachurl']}{$row['thumb']}" />
              </b>
            </div>

            <div class="list-text">
              <h1>{$row['title']}</h1>
              <h1>{if $row['isstart']}{php echo date('Y/m/d H:i:s', $row['starttime'])} 至 {php echo date('Y/m/d H:i:s', $row['endtime'])}{else}未开始{/if}</h2>
			   <h1>活动状态: {if $row['status']=='0'}关闭{else}开启{/if}</h1>
            </div>
         </a>        
		</li>
      {/loop}  
    </ul>
  </div>





          </div>
        </section>

          <section class="mod-navLine navLine-2">
    <ul class="navLine-ul">
          <li style="width:50%">
            <a href="{php echo $this->createMobileUrl('alllist')}" class="dev-index">
                    <i class="fa fa-home"></i>
                <small>相亲首页</small>
</a>          </li>

           <li style="width:50%">
            <a href="{php echo $this->createMobileUrl('homecenter')}" class="">
                    <i class="fa fa-location-arrow"></i>
                <small>个人中心</small>
</a>          </li>
    </ul>
  </section>


        


      </div><!--.stage end-->
    </div><!--.html end-->

   

  <footer style="height: 110px;
margin-top: -110px;
line-height: 70px;">Powered By {$_W['account']['name']}</footer>

        <!-- tongji code -->
    
  </body>
  <script type="text/javascript">
  wx.ready(function () {
    var shareData = {
    title: "{$settings['share_title']}",
    desc: "{$settings['share_content']}",
    link: "{$settings['share_link']}",
    imgUrl: "{$_W['attachurl']}{$settings['share_logo']}",
  };
  
  //分享朋友
  wx.onMenuShareAppMessage({
       title: shareData.title,
      desc: shareData.desc,
      link: shareData.link,
      imgUrl:shareData.imgUrl,
      trigger: function (res) {
      },
      success: function (res) {
        send_intergal();
      },
      cancel: function (res) {
      },
      fail: function (res) {
        alert(JSON.stringify(res));
      }
    });
 //朋友圈
  wx.onMenuShareTimeline({
      title: shareData.title+"---"+shareData.desc,
      link: shareData.link,
      imgUrl:shareData.imgUrl,
      trigger: function (res) {
      },
      success: function (res) {
          send_intergal();
      },
      cancel: function (res) {
      },
      fail: function (res) {
        Joel_gmuAlert("分享失败","网络超时！！！！");
      }
    });   
    
  });



function send_intergal(){
   $.ajax({
			type:"POST",
			url:"{php echo $this->createMobileUrl('shareajax')}",
			data:{openid:'{$openid}}'},
			cache:false,
			success:function(data){
				if(data=="no"){
				alert("分享成功,抱歉，网络超时，获取积分失败！！！");
                   
				}
				else if(data=="over"){
				   alert("分享成功,你今天的分享次数已经超过上限哦，请明天再来吧！！！");
				
				}
				else{
				   alert("分享成功,恭喜您，获得{$settings['share_jifen']}个奖励积分！今天你还有"+data+"次分享赚积分机会哦！");
				}
			}
		});
}


        </script>
</html>
